package by.admonko.universaltesting.services;

import java.util.List;

import org.springframework.transaction.annotation.Transactional;

import by.admonko.universaltesting.datamodel.UserTbl;

public interface UserTblService {
	@Transactional
	UserTbl getUserById(Integer id);

	@Transactional
	UserTbl getUserByPass(Integer hash);// get with login true

	@Transactional
	List<UserTbl> getUsersByGroup(Integer groupId);// TODO create dao

	@Transactional
	List<UserTbl> getAllUser();

	@Transactional
	void setUser(UserTbl userTbl);

	@Transactional
	void updateUser(UserTbl userTbl);

	@Transactional
	void removeUser(Integer id);

	@Transactional
	void removeUserList(List<Integer> ids);

}
